package com.zhaoxi.project.wms.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhaoxi.framework.aspectj.lang.annotation.Excel;
import com.zhaoxi.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 物品订单明细对象 wms_order_line
 *
 * @author zhaoxi
 * @date 2023-07-22
 */
@Data
public class WmsOrderLine extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 单据ID
     */
    private Long id;

    /**
     * 产品物料编码
     */
    private String goodsCode;

    /**
     * 批次号
     */
    private String batchCode;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String measureUnit;

    /**
     * 入库数量
     */
    @Excel(name = "入库数量")
    private BigDecimal quantity;

    /**
     * 库位ID
     */
    @Excel(name = "库位ID")
    private Long areaId;

    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireDate;

    /**
     * $column.columnComment
     */
    @Excel(name = "租户", readConverterExp = "租户")
    private Long tenantId;

}
